package com.qjj.studydainty.entity;
/*
 * Title:       <br>
 * Description: <br>
 *
 * @author 曲建金
 * @version 1.0
 */

import android.graphics.Bitmap;

import java.text.SimpleDateFormat;
import java.util.Locale;

public class MyFileInfo {

    private String name;
    private String size;
    private long time;
    private String path;
    private Bitmap bitmap;

    public MyFileInfo(String name, String size, long time, String path, Bitmap bitmap) {
        this.name = name;
        this.size = size;
        this.time = time;
        this.path = path;
        this.bitmap = bitmap;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }

    public String getSizeAndTime() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINESE);
        return size + " | " + simpleDateFormat.format(getTime());
    }
}
